import axios from 'axios'
/* 设置基础URL */
axios.defaults.baseURL = `http://124.221.75.169:9999/zzxcsm`
// axios.defaults.baseURL = `http://localhost:9999/zzxcsm`
axios.interceptors.request.use(
    (config) => {
        if (config.url != '/login') {
            config.headers.Authorization = window.localStorage.getItem("token");
        }
        return config;
    },
    (error) => Promise.reject(error)
)
export default axios